const state = {
  token: '',
  data: [],
  tableLength: 1
}

const mutations = {
  SET_TOKEN: (state, token) => {
    state.token = token
  },
  changeDataMut(state, params) {
    state.data = params
  },
  SET_DATA(state, data) {
    state.data.push(data)
  },
  SET_tableLength(state, length) {
    state.tableLength = length
  }
}

const actions = {
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
